import {useState} from 'react'
import CounterShow from './components/counter/CounterShow'
import CounterUpdate from './components/counter/CounterUpdate'

export default function App() {

  const [count, setCount] = useState(0)

  return (
    <div style={{margin: 20}}>
      <CounterShow count={count}/>

      <hr />

      <CounterUpdate setCount={setCount} count={count}/>
    </div>
  )
}
